﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace InheritDemo
{
    class TestInherit
    {
        Teacher teacher = new Teacher();
        Student student = new Student();
        public void Test()
        {
            teacher.Address = "天津";
            teacher.IdNo = 1000;
            teacher.CourseName = "上位机";
        }
    }
}
